package join_db

import database "hft/Database"

// 加盟合作
type Join struct {
	ID         uint   `json:"id" gorm:"primaryKey;autoIncrement"`
	CreateTime int    `json:"create_time" gorm:"autoCreateTime:milli"`
	Phone      string `json:"phone" gorm:"type:varchar(20);uniqueIndex;not null"`
	Username   string `json:"username" gorm:"type:varchar(20)"`
	Company    string `json:"company" gorm:"type:varchar(20)"`
	Region     string `json:"region"`
	Remark     string `json:"remark"`
}

func (Join) TableName() string {
	return database.TableNameFormat("join")
}
